package com.changgou.search.feign;

import com.changgou.entity.QueryPageBean;
import com.changgou.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @author xuchangshuo
 * @date 2020/7/28 15:07
 */
@FeignClient(name = "search")
public interface SearchFeign {

    @RequestMapping("/search/find")
    public Result search(@RequestParam Map<String, String> searchMap, @RequestBody QueryPageBean queryPageBean);
}
